import request from '@/utils/request'



//统一字典下拉框查询
export function adminDict(params) {
    return request({
        url: `common/v1/adminDict`,
        params
    })
}

//统一字典下拉框查询
export function prizeSelectList(params) {
    return request({
        url: `/box/prize/select/list`,
        params
    })
}
//获取奖池奖品选择列表
export function jackpotSelectList() {
    return request({
        url: `/jackpot/prize/select/list`,
    })
}
//查询盲盒活动列表
export function activityList(params) {
    return request({
        url: `/box/activity/list`,
        params
    })
}
//新增奖池奖品
export function addBoxActivity(data) {
    return request({
      url: '/box/activity',
      method: 'post',
      data
    })
}

//编辑卡信息
export function editBoxActivity(data) {
    return request({
        url: `/box/activity`,
        method: 'put',
        data
    })
}


//获取盲盒活动信息
export function activityDetail(id) {
    return request({
        url: `/box/activity/${id}`,
        method: 'get',
    })
}

//修改盲盒活动规则图片
export function updatePicture(data) {
    return request({
        url: `/box/activity/picture/update`,
        method: 'put',
        data
    })
}

// 盲盒活动切换显示
export function activityShow(id) {
    return request({
        url: `/box/activity/${id}`,
        method: 'put',
    })
}


